$.extend($.fn.validatebox.defaults.rules, {
	equaldDate : {
		validator : function(value, param) {
			//var start = $(param[0]).datetimebox('getValue'); // 获取开始时间
			var currendate = getNowFormatDate();
			return value > currendate;
		},
		message : '过期日期不得小于当前日期时间!' // 匹配失败消息
	}
});

//获取当前时间，格式YYYY-MM-DD
function getNowFormatDate() {
    var date = new Date();
    var seperator1 = "-";
    var seperator2 = ":";
    var year = date.getFullYear();
    var month = date.getMonth() + 1;
    var strDate = date.getDate();
    if (month >= 1 && month <= 9) {
        month = "0" + month;
    }
    if (strDate >= 0 && strDate <= 9) {
        strDate = "0" + strDate;
    }
    var hour = date.getHours(); //时
    var minute = date.getMinutes(); //分
    var second = date.getSeconds(); //秒
    var currentdate = year + seperator1 + month + seperator1 + strDate+" "+hour+seperator2+minute+seperator2+second;;
    return currentdate;
}